-- GENERATED SPELL FOR [Anub'ar Ambusher] --


function spell0_26402(pUnit, Event) --@Rush,n/a--
pUnit:FullCastSpellOnTarget(50347,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26402', 5328, 1)
end

function Sorts_26402(pUnit, Event)
local choix_sorts_26402 = math.random(0, 0)
if choix_sorts_26402 == 0 then
pUnit:RegisterEvent('spell0_26402', 1, 1)
end
end

function mob26402_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26402', math.random(1500, 3000), 1)
end

function mob26402_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26402_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26402_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26402, 1, 'mob26402_Action')
RegisterUnitEvent(26402, 2, 'mob26402_Leave')
RegisterUnitEvent(26402, 3, 'mob26402_Kill')
RegisterUnitEvent(26402, 4, 'mob26402_Die')
